<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form action="<?php echo url_for("create_adventure", array('region_id' => $form->getObject()->getRegionId())) ?>"
 method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
<?php echo $form["title"]->renderLabel(); ?>
 <div class="in">
     <?php echo $form["title"]->render(); ?><br/><br/>
     <?php if($form["title"]->renderError()!= NULL): ?>
     <div class="ui-state-error">
          <?php echo $form["title"]->renderError(); ?>
     </div>
     <?php endif;?>
 </div><br/>
 <?php echo $form["first_action"]["body"]->renderLabel(); ?>
<div class="in">
    <?php echo $form["first_action"]["body"]->render(); ?><br/><br/>
    <?php if($form["title"]->renderError()!= NULL): ?>
     <div class="ui-state-error">
          <?php echo $form["first_action"]["body"]->renderError(); ?>
     </div>
    <?php endif;?>
</div>
 <?php echo $form['_csrf_token']; ?><br/>
 <input class="btn primary" type="submit" value="GO !" />
</form>
